/*
 * Module:	Global include file
 * Author:	Lvjianfeng
 * Date:	2011.8
 */

#ifndef _GLOBAL_H_
#define _GLOBAL_H_

//Constant define
#include "reg51.h"

//Type definition

typedef char				int8;
typedef unsigned char		uint8;
typedef signed char			sint8;
typedef short int			int16;
typedef unsigned short int	uint16;
typedef signed short int	sint16;

typedef float				float32;
typedef double				float64;

typedef uint8				uint;
typedef sint8				sint;

typedef enum 
{
	FUNCTION_OK = 1,
	FUNCTION_FAIL = 0
} function_return;

#endif
